import request from '@/utils/request'

// 查询重量法检验原始记录列表
export function listWeight(query) {
  return request({
    url: '/Laboratory/weight/list',
    method: 'get',
    params: query
  })
}

// 查询重量法检验原始记录详细
export function getWeight(id) {
  return request({
    url: '/Laboratory/weight/' + id,
    method: 'get'
  })
}

// 新增重量法检验原始记录
export function addWeight(data) {
  return request({
    url: '/Laboratory/weight',
    method: 'post',
    data: data
  })
}

// 修改重量法检验原始记录
export function updateWeight(data) {
  return request({
    url: '/Laboratory/weight',
    method: 'put',
    data: data
  })
}
export function checkWeight(data) {
  return request({
    url: '/Laboratory/weight/check',
    method: 'put',
    data: data
  })
}
// 删除重量法检验原始记录
export function delWeight(id) {
  return request({
    url: '/Laboratory/weight/' + id,
    method: 'delete'
  })
}

// 查询容量法结果
export function getCapResult(data) {
  return request({
    url: '/Laboratory/weight/getCapResult',
    method: 'post',
    data: data
  })
}